package com.bosssoft.boss_exam_core.common.config.StorageConfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "bossexam.storage")
@PropertySource(value = "classpath:application-core.properties")
public class StorageProperties {
    private String active;
    @Autowired
    private LocalProperties localProperties;
    @Autowired
    private QiniuProperties qiniuProperties;

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public LocalProperties getLocalProperties() {
        return localProperties;
    }

    public void setLocalProperties(LocalProperties localProperties) {
        this.localProperties = localProperties;
    }

    public QiniuProperties getQiniuProperties() {
        return qiniuProperties;
    }

    public void setQiniuProperties(QiniuProperties qiniuProperties) {
        this.qiniuProperties = qiniuProperties;
    }
}
